package com.landcode.land.service.consumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.landcode.land.service.consumer.service.ITestHi;

@RestController
@RequestMapping("/consumer")
public class TestHiController {

    @Autowired
    private ITestHi testHi;

    @RequestMapping("/hi")
    public String testHi() {
        return testHi.testHi();
    }

    @RequestMapping("/e")
    public int testE() {
        return Integer.parseInt("fddsf") / 100;
    }
}
